package org.eclipse.egf.ftask.producer.invocation;

import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.egf.core.producer.InvocationException;
import org.eclipse.egf.ftask.producer.context.ITaskProductionContext;
import org.eclipse.egf.ftask.producer.invocation.ITaskProduction;

public class TaskProductionForGroovy implements ITaskProduction {

	private ITaskProduction groovyTask;
 
	
	
	public TaskProductionForGroovy(ITaskProduction groovyTask){
		this.groovyTask = groovyTask;
	}
	public void preExecute(ITaskProductionContext productionContext,
			IProgressMonitor monitor) throws InvocationException {
			groovyTask.preExecute(productionContext, monitor);
	}

	public void doExecute(ITaskProductionContext productionContext,
			IProgressMonitor monitor) throws InvocationException {
		groovyTask.doExecute(productionContext, monitor);
	}

	public void postExecute(ITaskProductionContext productionContext,
			IProgressMonitor monitor) throws InvocationException {
		groovyTask.postExecute(productionContext, monitor);
	}

}
